package inventory.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class PermissionRecord extends Model<PermissionRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "perm_rec_id", type = IdType.UUID)
    private String permRecId;
    private String userId;
    private Integer permissionListId;


    public String getPermRecId() {
        return permRecId;
    }

    public void setPermRecId(String permRecId) {
        this.permRecId = permRecId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getPermissionListId() {
        return permissionListId;
    }

    public void setPermissionListId(Integer permissionListId) {
        this.permissionListId = permissionListId;
    }

    @Override
    protected Serializable pkVal() {
        return this.permRecId;
    }

    @Override
    public String toString() {
        return "PermissionRecord{" +
        ", permRecId=" + permRecId +
        ", userId=" + userId +
        ", permissionListId=" + permissionListId +
        "}";
    }
}
